<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitealbum
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: faq_help.tpl 2011-08-026 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
?>
<script type="text/javascript">
  function faq_show(id) {
    if($(id).style.display == 'block') {
      $(id).style.display = 'none';
    } else {
      $(id).style.display = 'block';
    }
  }
</script>
<div class='tabs'>
		<ul class="navigation">
		  <li class="<?php if($this->faq_type == 'general') { echo "active"; } ?>">
		 	<?php echo $this->htmlLink(array('route'=>'admin_default','module' => 'sitealbum','controller' => 'settings','action' => $this->action, 'faq_type' => 'general'), $this->translate('General'), array())
		  ?>
			</li>
			<li class="<?php if($this->faq_type == 'customize') { echo "active"; } ?>">
		   <?php
		    echo $this->htmlLink(array('route'=>'admin_default','module' => 'sitealbum','controller' => 'settings','action' => $this->action, 'faq_type' => 'customize'), $this->translate('Customize'), array())
		  ?>
			</li>
    </ul>
</div>
<div class="admin_seaddons_files_wrapper">
	<ul class="admin_seaddons_files seaddons_faq">	
   <?php if($this->faq_type == 'general'): ?>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_1');"><?php echo $this->translate("What kinds of displays are available for Photos?"); ?></a>
      <div class='faq' style='display: none;' id='faq_1'>
        <?php echo $this->translate("Ans: There are 2 types of Photo displays available. Both of them are AJAX based displays. The first is a simple AJAX based display, and the second one is an advanced lightbox display. The Advanced Lightbox Display for album photos can be enabled from Global Settings of Advanced Photo Albums Plugin."); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_2');"><?php echo $this->translate("I have enabled the \"Advanced Lightbox Display\" from Global Settings. But the album photos in the activity feeds are still not being displayed in Advanced Lightbox. What can be the solution ?"); ?></a>
      <div class='faq' style='display: none;' id='faq_2'>
        <?php echo $this->translate("Ans: Please visit the \"Activity Feeds\" section in the Admin Panel of the Advanced Photo Albums Plugin."); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_3');"><?php echo $this->translate("How can I make albums featured? Where are featured albums displayed?"); ?></a>
      <div class='faq' style='display: none;' id='faq_3'>
        <?php echo $this->translate("Ans: You can make albums featured either from the \"Featured Albums\" section in the Admin Panel of the Advanced Photo Albums Plugin, or using the \"Make Featured\" link on the main album page. Featured Albums are displayed in the attractive \"Featured Albums Slideshow\" widget and the \"Featured Albums\" widget."); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_4');"><?php echo $this->translate("How can I make photos featured? Where are featured photos displayed?"); ?></a>
      <div class='faq' style='display: none;' id='faq_4'>
        <?php echo $this->translate("Ans: You can make photos featured either from the \"Featured Photos\" section in the Admin Panel of the Advanced Photo Albums Plugin, or using the \"Make Featured\" link on the main photo page / lightbox. Featured Photos are displayed in the attractive \"Featured Photos Carousel\" widget and the \"Featured Photos\" widget."); ?>
      </div>
    </li>
		<li>
      <a href="javascript:void(0);" onClick="faq_show('faq_5');"><?php echo $this->translate("How can I mark an album as \"Album of the Day\"?"); ?></a>
      <div class='faq' style='display: none;' id='faq_5'>
        <?php echo $this->translate("Ans: You can mark an album as \"Album of the Day\" either from the \"Widget Settings\" > \"Album of the Day\" section in the Admin Panel of the Advanced Photo Albums Plugin, or using the \"Make Album of the Day\" link on the main album page. Album of the Day is displayed in the \"Album of the Day\" widget."); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_6');"><?php echo $this->translate("How can I mark a photo as \"Photo of the Day\"?"); ?></a>
      <div class='faq' style='display: none;' id='faq_6'>
        <?php echo $this->translate("Ans: You can mark a photo as \"Photo of the Day\" either from the \"Widget Settings\" > \"Photo of the Day\" section in the Admin Panel of the Advanced Photo Albums Plugin, or using the \"Make Photo of the Day\" link on the main photo page / lightbox. Photo of the Day is displayed in the \"Photo of the Day\" widget."); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_7');"><?php echo $this->translate("The CSS of this plugin is not coming on my site. What should I do ?"); ?></a>
      <div class='faq' style='display: none;' id='faq_7'>
        <?php echo $this->translate('Ans: Please enable the \'Development Mode\' system mode for your site from the Admin homepage and then check the page which was not coming fine. It should now seem fine. Now you can again change the system mode to \'Production Mode\'.'); ?>
      </div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_8');"><?php echo $this->translate("The content in these widgets is not coming fine on my site because of my site's theme: Tabbed Albums Widget, Tabbed Photos Widget, Album Photos widget (on Album View Page). What should I do?"); ?></a>
      <div class='faq' style='display: none;' id='faq_8'>
        <?php echo $this->translate('Ans: This would be happening because of the column width in your theme. Please go to the Layout Editor ("Layout" > "Layout Editor") and click on "Edit" link for that widget. Once there, change the value of the "Horizontal Margin between Elements" field for that widget to the one that would suit your theme.'); ?>
      </div>
    </li>
    <?php elseif($this->faq_type == 'customize'):?>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_9');"><?php echo $this->translate("I do not want to show default albums on Member Profile Page. How can it be possible?"); ?></a>
     <div class='faq' style='display: none;' id='faq_9'>
						<?php echo $this->translate("Ans: Yes, you can choose to not display the default albums on Member Profile Page.");?><br />
						<?php echo $this->translate("To do so, please follow the steps below:") ?><br /><br />
            <?php  if (!Engine_Api::_()->sitealbum()->isLessThan417AlbumModule()): ?>
						<?php echo $this->translate('1) Open the file with path: "application/modules/Album/Model/DbTable/Albums.php".') ?><br /><br />
            <?php echo $this->translate("2) Search for the following code near about line number 79.") ?><br /><br />
            <?php else: ?>
            <?php echo $this->translate('1) Open the file having the path: "application/modules/Album/Api/Core.php".') ?><br /><br />
            <?php echo $this->translate("2) Search for the following code near about line number 79.") ?><br /><br />
            <?php endif; ?>
						
						<div class="code">
							<?php echo 'if( !empty($options[\'search\']) && is_numeric($options[\'search\']) ) {<br />&nbsp;
                            $select->where(\'search = ?\', $options[\'search\']);<br />&nbsp;
                    }' ?><br />							
						</div><br />
						<?php echo $this->translate("3)  Now paste the code mentioned in this step just below the code mentioned in step 2.") ?><br /><br />
						<div class="code">
								<?php echo '$select->where(\'type IS NULL\');' ?><br />					
						</div><br />
						<div class='tip'><span><b>
							<?php echo $this->translate('NOTE: Whenever you will upgrade Core Albums plugin on your site, these changes will be overwritten and you will have to do them again in the respective files as mentioned above.'); ?></b></span>
						</div>
					</div>
    </li>
    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_10');"><?php echo $this->translate("I do not want to show default albums to members on Browse Albums Page. How can it be possible?"); ?></a>
      <div class='faq' style='display: none;' id='faq_10'>
      	<?php echo $this->translate("Ans: Yes, you can choose to not display the default albums on Browse Albums Page.");?><br />
        <?php echo $this->translate("To do so, please follow the steps below:") ?><br /><br />
        <?php echo $this->translate('1) Open the file with path: "application/modules/Album/controllers/IndexController.php".') ?><br /><br />
        <?php echo $this->translate("2) Search for the folowing line of code near about line number 67.") ?><br /><br />
        <div class="code">
          <?php echo '$select = $table->select()<br />&nbsp;
                    ->where("search = 1")<br />&nbsp;
                  ->order($order . \' DESC\');' ?><br />     
        </div><br />
        <?php echo $this->translate("3) Now paste the code mentioned in this step just below the code mentioned in step 2.") ?><br /><br />
        <div class="code">
            <?php echo '$select->where(\'type IS NULL\');' ?><br />         
        </div><br />
        <div class='tip'><span><b>
          <?php echo $this->translate('NOTE: Whenever you will upgrade Core Albums plugin on your site, these changes will be overwritten and you will have to do them again in the respective files as mentioned above.'); ?></b></span>
        </div>
      </div>
    </li>

    <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_11');"><?php echo $this->translate("I am having the 3rd party Rates Plugin on my site and Advanced Photo Albums plugin is not working with that plugin. What can be the solution ?"); ?></a>
      <div class='faq' style='display: none;' id='faq_11'>
      	<?php echo $this->translate("Ans: For the compatibility of Advanced Photo Albums plugin with 3rd party Rates Plugin, please follow the below steps:");?><br /><br />
        <?php echo $this->translate("1) At the admin panel of your site go to the below link :") ?><br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate("SITE_URL/admin/rate/faq") ?><br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('And then click on "Album Photos Page." there and you will see some instructions like given below for that plugin :') ?><br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('File - application\modules\Album\views\scripts\album\view.tpl') ?><br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('Line - 82 (or search red-highlighted text via editor)') ?><br /><br />
        <?php echo $this->translate('2) Now, to make the rates plugin compatible with our Advanced photo Albums plugin, you just have to use the below file path:<br />&nbsp;&nbsp;&nbsp;
"application/modules/Sitealbum/widgets/album-view/index.tpl"') ?><br /><br />

        <?php echo $this->translate('3) Now, they have instructed to search for below code in the FAQ for Albums plugin:') ?><br /><br />
        <div class="code">
        <?php echo '&lt;a class="thumbs_photo" href="&lt;?php echo $photo->getHref(); ?&gt;" &gt; <br />
                      &lt;span style="background-image: url(&lt;?php echo $photo->getPhotoUrl(\'thumb.normal\'); ?&gt;);" &gt; &lt;/span &gt;<br />
                    &lt;/a &gt;';
         ?><br />
        </div>
        <br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('And you have to search our code given below in place of the above code to do the same thing for Advanced Albums Plugin:') ?><br /><br />
        <div class="code">
        <?php echo ' &lt;a class="thumbs_photo" href="&lt;?php echo $photo->getHref(); ?&gt;" &lt;?php if($this->showLightBox): ?&gt; onclick=\'openLightBoxAlbum("&lt;?php echo $photo->getPhotoUrl()?&gt;","&lt;?php echo Engine_Api::_()->sitealbum()->getLightBoxPhotoHref($photo); ?&gt;");return false;\' &lt;?php endif; ?&gt;&gt;<br />
                  &lt;span style="background-image: url(&lt;?php echo $photo->getPhotoUrl(\'thumb.normal\'); ?&gt;);"&gt;&lt;/span&gt;<br />
                  &lt;/a&gt;';
         ?><br />
        </div>
        <br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('And then replace the above code in the same way by the green block of code as told by them in the above FAQ link of that plugin.') ?><br /><br />
        &nbsp;&nbsp;&nbsp;<?php echo $this->translate('In this way, you just had to change the file name and the searchable block to make this Rates plugin work for Advanced Photo Albums plugin.') ?><br /><br />
        
        <div class='tip'><span><b>
          <?php echo $this->translate('NOTE: Whenever you will upgrade Advanced Photo Albums plugin on your site, these changes will be overwritten and you will have to do them again in the respective files as mentioned above.'); ?></b></span>
        </div>
      </div>
    </li>
     <li>
      <a href="javascript:void(0);" onClick="faq_show('faq_12');"><?php echo $this->translate("I am having the 3rd party Advanced Wall Plugin on my site but photos in the Activity Feed are not being displayed in lightbox. What can be the solution ?"); ?></a>
      <div class='faq' style='display: none;' id='faq_12'>
      	<?php echo $this->translate("Ans: For the compatibility of Advanced Photo Albums plugin with 3rd party Advanced Wall plugin so that photos in the Activity Feed are displayed in lightbox, please follow the below steps:");?><br /><br />
        <?php echo $this->translate('Step 1: OPEN this file: "application/modules/Wall/views/scripts/_wallText.tpl"') ?><br /><br />
       
        <?php echo $this->translate('Step 2: Place the below code at the top of this file:') ?><br /><br />
         <div class="code">
        <?php echo '	&lt;?php // Sitepageplugin ?&gt;<br />
				&lt;?php $sitepageAlbumEnable = Engine_Api::_()->getDbtable(\'modules\', \'core\')->isModuleEnabled(\'sitepagealbum\'); ?&gt;<br />
				&lt;?php <br />
				if ($sitepageAlbumEnable && Engine_Api::_()->sitepage()->canShowPhotoLightBox()):<br />
					include_once APPLICATION_PATH . \'/application/modules/Sitepagealbum/views/scripts/_lightboxImage.tpl\';<br />
				endif;<br />
				?&gt;<br />
				&lt;?php // Sitealbum plugin ?&gt;<br />
				&lt;?php $sitealbumEnable = Engine_Api::_()->getDbtable(\'modules\', \'core\')->isModuleEnabled(\'sitealbum\');<br />
				if ($sitealbumEnable && Engine_Api::_()->sitealbum()->showLightBoxPhoto()):<br />
					include_once APPLICATION_PATH . \'/application/modules/Sitealbum/views/scripts/_lightboxPhoto.tpl\';<br />
				endif;<br />
				?&gt;<br />';
         ?>
        </div>
        <br />
        <?php echo $this->translate('	Step 3: Now, FIND the code given below around line no. 99 (approx.) :') ?><br /><br />
         <div class="code">
        <?php echo '&lt;?php if( $attachment-&gt;item-&gt;getPhotoUrl() ): ?&gt; <br />
                      &lt;?php echo $this-&gt;htmlLink($attachment-&gt;item-&gt;getHref(), $this-&gt;itemPhoto($attachment-&gt;item, \'thumb.normal\', $attachment-&gt;item-&gt;getTitle())) ?&gt;<br />
                    &lt;?php endif; ?&gt;<br />';
         ?>
        </div>
        <br />
        <?php echo $this->translate('Now, REPLACE the above code by below block of code :') ?><br /><br />
        <div class="code">
        <?php echo '&lt;?php if( $attachment-&gt;item-&gt;getPhotoUrl() ): ?&gt;<br />
                      &lt;?php $attribs=array(); // Sitealbum plugin Start ?&gt;<br />
                      &lt;?php if($sitealbumEnable && $attachment-&gt;item-&gt;getType() == "album_photo" && Engine_Api::_()-&gt;sitealbum()-&gt;showLightBoxPhoto()):<br />
                          $attribs=@array_merge($attribs, Array(\'onclick\'=&gt; \'openLightBoxAlbum("\'.$attachment-&gt;item-&gt;getPhotoUrl().\'","\'. Engine_Api::_()-&gt;sitealbum()-&gt;getLightBoxPhotoHref($attachment-&gt;item) .\'");return false;\'));<br />
                      endif; ?&gt;<br />
                      &lt;?php // Sitealbum plugin End ?&gt;<br />
                      &lt;?php echo $this-&gt;htmlLink($attachment-&gt;item-&gt;getHref(), $this-&gt;itemPhoto($attachment-&gt;item, \'thumb.normal\', $attachment-&gt;item-&gt;getTitle()), $attribs) ?&gt;<br />
                    &lt;?php endif; ?&gt;';
         ?><br />
        </div>
        <br />
        <?php echo $this->translate('Step 4: Now, FIND the code given below around line no. 121 (approx.) :') ?><br /><br />
         <div class="code">
        <?php echo '&lt;?php elseif( $attachment->meta->mode == 2 ): // Thumb only type actions ?&gt;<br />
						&lt;div class="feed_attachment_photo"&gt;<br />
							&lt;?php echo $this->htmlLink($attachment->item->getHref(), $this->itemPhoto($attachment->item, \'thumb.normal\', $attachment->item->getTitle()), array(\'class\' => \'feed_item_thumb\')) ?&gt;<br />
						&lt;/div&gt;<br />';
         ?>
        </div><br />
         <?php echo $this->translate('Now, REPLACE the above code by below block of code :') ?><br /><br />
         <div class="code">
        <?php echo '&lt;?php elseif( $attachment->meta->mode == 2 ): // Thumb only type actions ?&gt;<br />
				&lt;div class="feed_attachment_photo"&gt;<br />
						&lt;?php $attribs = Array(\'class\' => \'feed_item_thumb\'); ?&gt;<br />
					&lt;?php if($sitepageAlbumEnable && $attachment->item->getType() == "sitepage_photo" && Engine_Api::_()->sitepage()->canShowPhotoLightBox()): <br />
						$attribs=@array_merge($attribs, array(\'onclick\'=>\'openLightBox("\'.$attachment->item->getPhotoUrl().\'","\'. Engine_Api::_()->sitepage()->getHreflink($attachment->item) .\'");return false;\')); <br />
						endif; ?&gt;<br />
					&lt;?php if($sitealbumEnable && $attachment->item->getType() == "album_photo" && Engine_Api::_()->sitealbum()->showLightBoxPhoto()): <br />
							$attribs=@array_merge($attribs,	Array(\'onclick\'=> \'openLightBoxAlbum("\'.$attachment->item->getPhotoUrl().\'","\'. Engine_Api::_()->sitealbum()->getLightBoxPhotoHref($attachment->item) .\'");return false;\'));
						endif; ?&gt;<br />
					&lt;?php echo $this->htmlLink($attachment->item->getHref(), $this->itemPhoto($attachment->item, \'thumb.normal\', $attachment->item->getTitle()), $attribs) ?&gt;<br />
				&lt;/div&gt;	<br />';
         ?>
        </div><br />

        <div class='tip'><span><b>
          <?php echo $this->translate('NOTE: Whenever you will upgarde the 3rd party plugin to which this file belongs, these changes will be overwritten and you will have to do them again in the respective files as mentioned above.'); ?></b></span>
        </div>
      </div>
    </li>
    <?php endif; ?>
	</ul>
</div>